package com.sgb.kjwl.model.entity.user;

import com.google.gson.annotations.SerializedName;

import java.text.DecimalFormat;

public class SearchSTEntity {
    /**
     * "no":"20191108042552996",
     * "image":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/material/650000/20191131204255135166",
     * "providerId":"974",
     * "price":"￥1/立方米",
     * //"id":"157318715299710",
     * "title":"商品标题 C10",
     * "providerName":"企业认证信息YU"
     **/
    @SerializedName("id")
    private String id;
    @SerializedName("no")
    private String no;
    @SerializedName("providerId")
    private String providerId;
    @SerializedName("price")
    private String price;
    @SerializedName("title")
    private String title;
    @SerializedName("providerName")
    private String providerName;
    @SerializedName("unit")
    private String unit;
    @SerializedName("image")
    private String image;
    @SerializedName("sort")
    private String strengthId;

    public String getStrengthId() {
        return strengthId;
    }

    public void setStrengthId(String strengthId) {
        this.strengthId = strengthId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getProviderId() {
        return providerId;
    }

    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }

    public String getPrice() {
        DecimalFormat df = new DecimalFormat("#0.00");
   //     return df.format(Double.parseDouble(price) / 100);
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
